package com.molichuxing.services.property;

import java.util.HashMap;
import java.util.Map;

/**
 * 汽车配置类型
 * @author liyg
 *
 */
public enum BaseCarModelParamEnum {

	BASIC(1,"基本信息"),
	
	POWER_SYS(2,"动力系统"),
	
	CHASSIS_SYS(3,"底盘系统"),
	
	CONTROL_SAFETY(4,"操控及安全"),
	
	WAI_GUAN(5,"外观"),
	
	NEI_SHI(6,"内饰"),
	
	YU_LE(7,"娱乐");
	
	 final static private Map<Integer, BaseCarModelParamEnum> map = new HashMap<Integer, BaseCarModelParamEnum>() {
	        private static final long serialVersionUID = -8414553247670306999L;
	        {
	            BaseCarModelParamEnum[] enums = BaseCarModelParamEnum.values();
	            for (BaseCarModelParamEnum enumerate : enums) {
	                put(enumerate.getValue(), enumerate);
	            }
	        }
	    };
	    
	    public static BaseCarModelParamEnum getEnum(int value) {
	        return map.get(value);
	    }

	    public static String getEnumDesc(int value) {
	    	BaseCarModelParamEnum enumerate = map.get(value);
	        if (enumerate != null) {
	            return enumerate.getName();
	        }
	        return "";
	    }

	    
	    private int value;

	    private String name;

		public int getValue() {
			return value;
		}

		public void setValue(int value) {
			this.value = value;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		private BaseCarModelParamEnum(int value, String name) {
			this.value = value;
			this.name = name;
		}
	    
	    
}
